<?php require_once(dirname(__FILE__)."/../config/config.php"); ?>
<?php if(!isset($_SESSION['_shop'])){header("location:../user_login.php");}?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>食品删除</title>
</head>
<body>
<?php
	$food_id=$_GET['id'];	
	$sql = "delete from zy_food where food_id='".$food_id."'";
	mysql_query($sql);
	echo "<script>location.href='food_list.php'</script>";
?>
</body>
</html>
